package com.ruoyi.buss.grid.cj.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.grid.cj.mapper.DataWgWgcjVillageMapper;
import com.ruoyi.buss.grid.cj.domain.DataWgWgcjVillage;
import com.ruoyi.buss.grid.cj.service.IDataWgWgcjVillageService;

/**
 * 网格村居按村维度统计Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class DataWgWgcjVillageServiceImpl implements IDataWgWgcjVillageService 
{
    @Autowired
    private DataWgWgcjVillageMapper dataWgWgcjVillageMapper;

    /**
     * 查询网格村居按村维度统计
     * 
     * @param id 网格村居按村维度统计ID
     * @return 网格村居按村维度统计
     */
    @Override
    public DataWgWgcjVillage selectDataWgWgcjVillageById(String id)
    {
        return dataWgWgcjVillageMapper.selectDataWgWgcjVillageById(id);
    }

    /**
     * 查询网格村居按村维度统计列表
     * 
     * @param dataWgWgcjVillage 网格村居按村维度统计
     * @return 网格村居按村维度统计
     */
    @Override
    public List<DataWgWgcjVillage> selectDataWgWgcjVillageList(DataWgWgcjVillage dataWgWgcjVillage)
    {
        return dataWgWgcjVillageMapper.selectDataWgWgcjVillageList(dataWgWgcjVillage);
    }

    /**
     * 新增网格村居按村维度统计
     * 
     * @param dataWgWgcjVillage 网格村居按村维度统计
     * @return 结果
     */
    @Override
    public int insertDataWgWgcjVillage(DataWgWgcjVillage dataWgWgcjVillage)
    {
        dataWgWgcjVillage.setCreateTime(DateUtils.getNowDate());
        return dataWgWgcjVillageMapper.insertDataWgWgcjVillage(dataWgWgcjVillage);
    }

    /**
     * 修改网格村居按村维度统计
     * 
     * @param dataWgWgcjVillage 网格村居按村维度统计
     * @return 结果
     */
    @Override
    public int updateDataWgWgcjVillage(DataWgWgcjVillage dataWgWgcjVillage)
    {
        dataWgWgcjVillage.setUpdateTime(DateUtils.getNowDate());
        return dataWgWgcjVillageMapper.updateDataWgWgcjVillage(dataWgWgcjVillage);
    }

    /**
     * 批量删除网格村居按村维度统计
     * 
     * @param ids 需要删除的网格村居按村维度统计ID
     * @return 结果
     */
    @Override
    public int deleteDataWgWgcjVillageByIds(String[] ids)
    {
        return dataWgWgcjVillageMapper.deleteDataWgWgcjVillageByIds(ids);
    }

    /**
     * 删除网格村居按村维度统计信息
     * 
     * @param id 网格村居按村维度统计ID
     * @return 结果
     */
    @Override
    public int deleteDataWgWgcjVillageById(String id)
    {
        return dataWgWgcjVillageMapper.deleteDataWgWgcjVillageById(id);
    }
}
